implemented auto dismiss of alert messages and success message type added