basic modal functionalit implemented