added window maximization