revamped backend and layout