Flux tube dynamo approach to the solar cycle