Added backend.php and changed some code in suggestion. Code generation works. Just need to work on the design now.