Fixed unfinished layer code, added maximized