cleaned up designer code