modules and tabs code optimalization