Added maximize functionality