some changes to theme

move option read from db only in functions.php