Add window state and maximization toggle