[Front] Bug fixes, code cleanup, tests add and more