added more functions to frontEnd